from django.db import models


class InfoStatus(models.Model):
    info_serial = models.CharField(max_length=15, null=True, blank=True, verbose_name='信息表serial', help_text='信息表serial')

    info_id = models.IntegerField(null=True, blank=True, verbose_name='信息表ID', help_text='信息表ID')

    fix_name = models.CharField(max_length=50, null=True, blank=True, verbose_name='修改字段名称', help_text='修改字段名称')

    fix_name_chinese = models.CharField(max_length=50, null=True, blank=True, verbose_name='修改字段中文名称', help_text='修改字段中文名称')

    fix_before = models.CharField(max_length=50, null=True, blank=True, verbose_name='修改前的值', help_text='修改前的值')

    fix_after = models.CharField(max_length=50, null=True, blank=True, verbose_name='修改后的值', help_text='修改后的值')

    create_time = models.DateTimeField(null=True, blank=True, verbose_name='字段更新时间', help_text='字段更新时间')

    def __str__(self):
        return '{}'.format(self.pk)

    class Meta:
        verbose_name = '信息修改记录'
        verbose_name_plural = verbose_name
